undefined local variable or method `user', using CarrierWave for profile images

Posted by Amar H-V on Stack Overflow See other posts from Stack Overflow or by Amar H-V
Published on 2013-11-12T21:50:51Z Indexed on 2013/11/12 21:53 UTC
Read the original article Hit count: 237

Filed under:
|
|

I've been following Ryan Bates' Railscasts tutorial on CarrierWave, which you can find here

Everything works fine, except for when I go to view my profile, it gives me this error:

undefined local variable or method `user'

I don't know why it is telling me this, as I am using Devise for my authentication, and that is the name of my model.

Below are some of the files which may be useful:

https://gist.github.com/amarh21/7439421

I am using Rails 4.0.1 and ruby 2.0.0

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about devise